package com.wisdom.rpcDemon.service.impl;

import com.wisdom.base.response.ResultBean;
import com.wisdom.core.annotation.WisdomRpcRemote;
import com.wisdom.rpcDemon.api.ServerService;
import com.wisdom.rpcDemon.service.DemonService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description: <>
 * @author: Leo
 * @date: 2021-08-23 15:40
 */
@Service
public class DemonServiceImpl implements DemonService {

    @WisdomRpcRemote
    private ServerService service;

    @Override
    public ResultBean<List<String>> getInfo(String requestId) {

        ResultBean<List<String>> resultBean = service.test(requestId);

        return resultBean;
    }
}
